#import <Foundation/Foundation.h>
#import "YLMessage.h"

NS_ASSUME_NONNULL_BEGIN

typedef void (^OnRecvMessage)(YLMessage *msg);

@interface YLMessageUtil : NSObject

-(void)send:(NSInteger)what;
-(void)send:(NSInteger)what Desc:(NSString*)desc;
-(void)send:(NSInteger)what Obj:(id)obj;
-(void)sendMessage:(YLMessage*)msg;

-(void)regist;
-(void)unRegist;

@property (nonatomic,copy) OnRecvMessage onRecvMessage;

@end

NS_ASSUME_NONNULL_END
